CAMEL-7321: Fix inconsistent synchronization to prevent freezing of
JcrConsumer

Signed-off-by: Gregor Zurowski <gregor@zurowski.org>
CAMEL-7321: Fix inconsistent synchronization to prevent freezing of
JcrConsumer

Signed-off-by: Gregor Zurowski <gregor@zurowski.org>