bss_dgram.c: more elegant solution to PR#2069. Use socklen_t heuristic