Declare more framework non-const statics const or atomic

This pull request is for thread safety in the framework.  Some more non const statics that are never modified are declared const, snd some that are modified are declared std::atomic.
Tested with checkdeps -a and the relval matrix.