A propeller scenario for the gamma-ray emission of low-mass X-ray binaries: the case of XSS J12270−4859