Use struct flock rather than flock to keep mac happy.