assert we are called from an hpx thread