[BZ-996144] fix creation of spring based KieModule when running in a managed container
(cherry picked from commit 12b5c3a8ff5aaa2aaa40744a51c702243b3c054c)