NMS-6019 make the timed out map thread-safe