allow creation of sockets from explicit handlers

and make `_handle` property available on both ctx and socket