Remove check about being in an IO thread