Formation of isolated millisecond pulsars in globular clusters