Modify mark_waiting_and_try_lock to return modified count if mutex already locked

svn path=/trunk/boost/thread/; revision=82828
Thread: cleanup perf_shared_mutex.cpp.

svn path=/trunk/libs/thread/; revision=82842
Thread: move local static variable to file scope in future_category.

svn path=/trunk/libs/thread/; revision=82843