JBPM-3814 BZ 1002724 Locking around the SSCS solves the issue! (cherry picked from commit 951885d0199a68c29bdc0dbc0cab9cd074e6df25)