Avoid locking in __debug()