network: Fix Socket::read to conform with the documentation
network: Fix Socket::read to conform with the documentation

When non blocking sockets were used a read with no data available would throw and
exception rather than returning -1. Fix this so only a read on a closed socket will
throw an exception

WearableComputerLab/LibWCL,WearableComputerLab/LibWCL,WearableComputerLab/LibWCL,WearableComputerLab/LibWCL