Fix getsockopt().

Regressed by 5f585e4777da518a575876eb5d006ba245a0578b.  Really need those tests.