NEC could still impose all women shortlist in Gorton and Denton by-election, says Mahmood