[Git][ghc/ghc][master] Take into account ifKind in freeNamesIfDecl