req_wrap: pass object as function parameter

Want consistency on how to retrieve the context, and passing object as
an argument is much cheaper than calling the functions from JS with
.call().