GetFromPid gets the namespace of the main thread, so previously Get returned the wrong value if run from any other thread. Add a new GetFromThread which uses the Linux thread id and switch Get to it.