cancel transaction on RLMRealm dealloc if still in write transaction

@tgoyne @alazier do you agree that this is a more correct behavior?