Removed locks in destructors.