block: add missing socket_init() calls to tools