Per discussions at https://lists.wisc.edu/read/messages?id=26793770 and https://issues.jasig.org/browse/MAS-75, use flock() instead of apr_file_lock() and apr_file_unlock()