Add thread interruption point in creating coinstake.