fixed to allow undeployment from non authorized thread like kie-config-cli or remote service deployement

(cherry picked from commit 1e8328948d8ccde72f299fbed248d97e96446ec1)