use FcntlFlock instead of Flock to suport solaris