Revert "Use a pthread_rwlock_t for the data file mutex."