TRQ-1627 Check before locking job to make sure its not already locked.