Only set PTHREAD_MUTEX_NO_ELISION_NP for mutex types where glibc might set it (PTHREAD_MUTEX_TIMED_NP).

Setting PTHREAD_MUTEX_NO_ELISION_NP for recursive mutexes causes glibc to
misbehave. In particular pthread_cond_wait calls
__pthread_mutex_cond_lock_adjust which does not handle recursive mutexes
properly if they have elision flags set.

Resolves #1241.