tests/unix_sockets: Fix incorrect mask usage when parsing res state
tests/unix_sockets: Add scaffolding for set state updates