BZ-1070739 - Remote REST rarely throws IllegalStateException: EntityManager is closed when load tested by multiple threads using PPI and HumanTask process

(cherry picked from commit 11ea99684620b322141030b0ea7d188501947912)