Use flock per discussions on apr_file_lock issues

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()