Make mark deref/tryDeref as transactional