Merge "Do not block main thread to register debug hook"