lock outside of transactions for processNow + cleanup
move locking in tests outside of transactions