A scenario of the formation of isolated X-ray pulsars with anomalously long period