[BZ-995078] avoid deadlock when reading globals