I've never been able to get into such a state either, with coding or any other such activity. For me the main impediment is almost definitely health-related (narcolepsy), but i wouldn't be surprised if there are quite a few other genetic configurations and circumstances without noticeable health consequences that make such intense levels of concentration next to impossible.