BZ1145105: Kie module build synchronization leak resulting in HashMap infinite loop

(cherry picked from commit 7102bf13f58539f4578debb7e20a9c60b1d86eb8)