stw: use proper stw_context pointers in shared interface