Three Terrestrial Planets Transiting Mid-to-Late M Dwarfs and Constraints on the Occurrence of Such Worlds