Jobs query taking time due to lock_owner_ is null check

this thread is similar as mentioned by @aivinog1 in Jobs query could be nonoptimal