Protect globals.Stopping with RWMutex.

Make globals.Stopping unexported and wrap writes/reads with methods that lock
on a RWMutex.
Adjust variable/method names
Update CHANGES.txt with globals.Stopping
Merge pull request #1056 from ecnahc515/protect_globals_stopping

Protect globals.Stopping with RWMutex.