Fix compilation on FreeBSD by taking 2437bbbf from upstream
The check_symbol_exists
cannot detect #define symbol 1
because it
takes the address of the symbol to detect it, but the address of a
literal is not allowed. Some platforms define PTHREAD_MUTEX_RECURSIVE
by such a literal.