Fermi gases with imaginary mass imbalance and the sign problem in Monte Carlo calculations