Update _finish_transaction()
Update _finish_transaction()

Check if the session is ended, and always increment txnNumber.

mongodb/mongo-python-driver,ShaneHarvey/mongo-python-driver,mongodb/mongo-python-driver,ShaneHarvey/mongo-python-driver,mongodb/mongo-python-driver,ShaneHarvey/mongo-python-driver