Add lockWait attribute for database queries to use 'FOR UPDATE WAIT #'
instead of 'FOR UPDATE NOWAIT SKIP LOCKED'