Attempt to fix taking request concurrency
Changes the order of taking a request from:
- start transaction
- lock
- do the thing
- unlock (now someone else can take the same request)
- end transaction
to
- lock
- start transaction
- do the thing
- end transaction
- unlock
Edited by Ruben Backx