Possible Pulsar Formation Mechanism via Thermonuclear Detonation in Collapsing Degenerate Cores