Nuclear-powered millisecond pulsars and the maximum spin frequency of neutron stars