Linux remove getflock replace with type
convert all other getflock usage to use type