Ensure this guard is held while deserializing AbsolutePathBuf values to
provide a base path for resolving relative paths. Because this relies on
thread-local storage, the deserialization must be single-threaded and
occur on the same thread that created the guard.