Use the native file locking capabilities of the OS