Thread: Added assertions on pthread/shared_mutex.hpp; fixed two shared_mutex tests that were wrong.

git-svn-id: http://svn.boost.org/svn/boost/trunk@83546 b8fc166d-592f-0410-95f2-cb63ce0dd405