JBPM-3869, BZ-880874: Pessimistic locking support
JBPM-3869, BZ-880874: Testing pessimistic locking