So far accept4 was only supported on archs using socketcall for x86. This patch adds support for the remaining archs. (cherry picked from commit 1e1dc4e8)