[DROOLS-206] avoid deadlock when reading globals
(cherry picked from commit 0366026647ff9b47bb4f5c2ee9b734072688a4e2)