Prevent other threads from cutting through a logging tree