fix repository tree can't handle two loading at once (#13348)
Contributed by Vadim Pushtaev.
Authored by: marutosijp 2013-11-13
Parent: [r12273]
Child: [r12275]