Generalize the compile-time condition of using pthread_rwlockattr_setkind_np to make Castro compile under Cygwin.