sock api: fix registrations and client reads