fix repository tree can't handle two loading at once (#13348)

Contributed by Vadim Pushtaev.

--HG--
extra : convert_revision : svn%3Ae93f8b46-1217-0410-a6f0-8f06a7374b81/trunk%4012274