BZ-982643 - Executing basic processes takes much longer comparing to jbpm5 - added tx handling for background threads in CDI env

(cherry picked from commit 3569db1066fc965b1c7c98bc538c8daeb136cb8b)