net: sockets: Fix mask application in sock_set_flag()
net: sockets: Fix mask application in sock_set_flag()

We pass normal 1-based mask, and mask invert it before logically
AND'ing with the value. This apparently a mix-up between how the
mask was intended to be passed initially and how it was in the end.
This issue actually didn't have an effect, because currently defined
flags have mutually exclusive lifetime (when "eof" flag is set,
"non-blocking" flag value is no longer import). Anyway, that's a
bug and needs fixing.

Signed-off-by: Paul Sokolovsky <35cb557f011771c94f127d6fef99f804b62203f5@linaro.org>

Vudentz/zephyr,ldts/zephyr,nashif/zephyr,zephyriot/zephyr,kraj/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,Vudentz/zephyr,galak/zephyr,explora26/zephyr,punitvara/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,finikorg/zephyr,galak/zephyr,punitvara/zephyr,Vudentz/zephyr,zephyriot/zephyr,mbolivar/zephyr,punitvara/zephyr,nashif/zephyr,kraj/zephyr,mbolivar/zephyr,kraj/zephyr,finikorg/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,zephyriot/zephyr,nashif/zephyr,mbolivar/zephyr,Vudentz/zephyr,punitvara/zephyr,ldts/zephyr,explora26/zephyr,zephyrproject-rtos/zephyr,zephyriot/zephyr,galak/zephyr,kraj/zephyr,zephyriot/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,explora26/zephyr,mbolivar/zephyr,nashif/zephyr,mbolivar/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,GiulianoFranchetto/zephyr,explora26/zephyr,kraj/zephyr,finikorg/zephyr,nashif/zephyr,galak/zephyr