If mod_gm_opt->max_jobs is reached, exit the worker process only after
gearman_worker_work has finished, instead of exiting in get_job. Exiting
prematurely causes the recently finished job to be not acknowledged, and
the job gets executed once again.