Add a configuration define LIBCXXRT_WEAK_LOCKS to control whether the
pthread locking functions should be defined as weak symbols like the
other pthread functions.