Monte Carlo algorithm for simulating fermions on Lefschetz thimbles