c) Add lock and unlock instructions so that the transactions obey the two-phase locking protocol.