hsa: cleanup ifdefs in sock tests