JBPM-3814: Fixing concurrency problems when using a singleton KieSession in a multi-threaded environment

This pull-request is related to a discussion I've been having with Kris and Maciej. 

The pull-request is only to showcase the progress I've made so far, in order to get feedback from them. 

Please do **not** merge this pull-request.