net: add setSocketBlocking() as OS independent wrapper

Changes made...