cli: Check pid file before random_delay

If there is another process running now, there is no need to wait, especially
without pidfile, so create such file immediately, then wait if needed.
19 jobs for feature/check-pid-before-delay in 0 seconds
latest
Status Job ID Name Coverage
  External
failed SlapOS.Eggs.UnitTest-luke.Python2

00:33:37

failed SlapOS.Eggs.UnitTest-luke.Python3

00:31:11

failed SlapOS.Eggs.UnitTest-luke.Python2

01:52:55

failed SlapOS.Eggs.UnitTest-luke.Python2

01:18:24

failed SlapOS.Eggs.UnitTest-luke.Python2

00:40:42

failed SlapOS.Eggs.UnitTest-luke.Python2

00:46:56

failed SlapOS.Eggs.UnitTest-luke.Python2

00:35:09

failed SlapOS.Eggs.UnitTest-luke.Python2

00:46:47

failed SlapOS.Eggs.UnitTest-luke.Python2

00:33:10

failed SlapOS.Eggs.UnitTest-luke.Python2

00:24:16

failed SlapOS.Eggs.UnitTest-luke.Python2

00:36:41

passed SlapOS.Eggs.UnitTest-luke.Python3

02:13:27

failed SlapOS.Eggs.UnitTest-luke.Python3

00:28:24

failed SlapOS.Eggs.UnitTest-luke.Python3

01:20:04

failed SlapOS.Eggs.UnitTest-luke.Python3

00:36:33

failed SlapOS.Eggs.UnitTest-luke.Python3

00:43:30

failed SlapOS.Eggs.UnitTest-luke.Python3

00:36:22

failed SlapOS.Eggs.UnitTest-luke.Python3

00:34:19

failed SlapOS.Eggs.UnitTest-luke.Python3

00:34:03