fixed a bug which may corrupted the memory breakpoints when a new thread starts