net: add setSocketBlocking() as OS independent wrapper