Avoid GET_LOCK in non-autocommit mode

* As the code comment mentioned, it is useless in that case.
  Unfortunately this does not always use the job queue so that
  case still matters.

bug: 70153
Change-Id: I9385211d265cf2cffeb1796e5f56603386766d26