[master] Do id freeing on rollback

This PR fixes so that transaction rollbacks free up the node and relationship id's that were allocated during the transaction. They will only be reused on restart though, as before.
This is fine as it is btw, since `TxStateImpl` visits nodes and relationships before any other type of record. This means that these potential dead lock exceptions will be thrown before we allocate any other type of id.