Fix for segfault in __ast_rwlock_destroy with DEBUG_THREADS