devel/socket_wrapper: Fix build on riscv64
Reported by: fallout
(cherry picked from commit 07a2a75447df3fcfb71557c877cd328996734023)