PID from lock fixups

Try to avoid race condition by waiting a little bit for the beanstalkd
lock file to appear.  Only try to get the PID from the lock file if the
server started successfully.