How can I lock transactions from updating ?