Add drop-in replacement for modifyTVar