thread state coordinator: handle when prerequisite pending stop is already stopped.

Change includes new gtest and functionality.