cli/slapgrid: Create slapgrid object after checking pidfile.

Slapgrid object makes a connection to master node immediately,
thus if you create a slapgrid object without checking pidfile and if
master node responds very slowly, you may get tons of stucked slapgrid
processes by cron and system may become unusable.
14 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
failed SlapOS-Master.UnitTest-Master

04:06:49

passed SlapOS.Eggs.UnitTest-Master.Python2

00:19:33

passed SlapOS.Eggs.UnitTest-Master.Python3

00:22:12

failed SlapOS-Master.UnitTest-Master

03:00:52

failed SlapOS-Master.UnitTest-Master

02:25:56

failed SlapOS-Master.UnitTest-Master

03:27:21

passed SlapOS.Eggs.UnitTest-Master.Python2

00:20:29

failed SlapOS.Eggs.UnitTest-Master.Python2

00:18:13

passed SlapOS.Eggs.UnitTest-Master.Python2

00:18:56

passed SlapOS.Eggs.UnitTest-Master.Python2

00:19:12

passed SlapOS.Eggs.UnitTest-Master.Python3

00:28:56

failed SlapOS.Eggs.UnitTest-Master.Python3

00:20:34

failed SlapOS.Eggs.UnitTest-Master.Python3

00:19:19

failed SlapOS.Eggs.UnitTest-Master.Python3

00:22:00