JBPM-3869, BZ-880874: Pessimistic locking support