Sleep thread on pause.

Implemented thread wait/notify when Neuro is suspended instead of using
busy wait which hogs CPU