CORE-5990: ensure that the argument order is always the same in the query used to lock job steps