Fix issue when exec and new thread keep the same tid.
DoDetach stub.