kernel: bgmac: backport patch switching to feature_flags