config: perform unlocking via git_transaction This makes the API for commiting or discarding changes the same as for references.