Don't use fcntl and flock (seemingly not supportedon opensolaris).