ISPN-4131 Lock acquired forever with delayed PrepareCommand

Keep track of the biggest transaction id we removed from the completed
transactions map for each node. If the incoming prepare command has a
smaller id, reject it.