Use advisory lock instead of table lock in get_job()