fixed bug releasing locks in _abortInternal