Ensuring that encoding of parcels always happens in a HPX thread