1. A method, comprising; detecting, by a processing thread, when the processing thread has entered a shared library; in response to the detecting, setting, in an operating system (OS), a thread flag corresponding to the thread; detecting OS flag, set by the OS, indicating that the OS is updating the shared library; in response to detecting the OS flag, suspending updating of the shared library and transferring control from the OS to the thread; detecting that the thread has cleared the thread flag and that the thread is sleeping; and resuming the updating of the shared library and walking the thread in response to detecting the thread flag has been cleared and the thread is sleeping.