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