Implement lwait() on non-Windows platforms.
This was done to enable testing of SLOWDRAW on GNU/Linux.
Authored by: david_costanzo 2017-05-31
Parent: [r4401]
Child: [r4403]