Move test for pthread_atfork inside SC_ENABLE_THREADS
Move test for pthread_atfork inside SC_ENABLE_THREADS