An approach to anomalies in M-theory via KSpin