On the origin and persistence of long-period pulsating X-ray sources