Hyper bug fix for N:M concurrency - _lthread_desched_event() used
global variable
Fixed write calls to return -1 & EPIPE on eof
Fixed read calls to return 0 on eof

Added SOCKET_TIMEO build option, which lets to obtain timeout set
on socket in case of no timeout was given to the function

lthread_freeze()/lthread_unfreeze() working concept, but
too slow because of locking