Fix BOOST_PTHREAD_HAS_TIMEDLOCK bug

* Fix bug where BOOST_PTHREAD_HAS_TIMEDLOCK is defined differently based on the include ordering, thus causing a violation of C++'s One Definition Rule (ODR). In particular, this define triggers the later conditional inclusion or exclusion of two members of class timed_mutex in mutex.hpp.