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.