fix flock command for ios build