JBPM-3814: Locking around entire transaction, instead of just execute

- releasing the lock only after transaction completion
- updating lock release
- updating synchronization
- updating maps
- moving clear after possible rollback
- move register rollback synck to iniial spot
work