Bug/fix flock errno osx

fix errno under osx