#35: Use flock instead of O_EXLOCK.