Use flock on server side.