fix npe with @inthread from non-actor code