Merged r12274 from trunk to 2.4-stable (#13348)
fix repository tree can't handle two loading at once.
Contributed by Vadim Pushtaev.
Authored by: marutosijp 2013-11-13
Parent: [r12275]
Child: [r12277]