MH370 did not fly near any countries for much of its flight
We don't know that; MH370's actual flight path has yet to be established as a known fact and everything is based on theory at this time.
What we do know is that 370 deviated from it's original planned route early in it's flight. This was apparently not seen as sufficiently unusual to start alarm bells ringing immediately and I would suggest that the delay in raising the alarm meant that MH370 was effectively allowed to disappear, for reasons which are as yet unknown...