core: add check in AddChildIndexer to avoid double lock (#20982)
This fixes a theoretical double lock condition which could occur in
Nobody would ever do that though.
Co-authored-by: Felix Lange <email@example.com>
Boqin Qin <Bobbqqin@gmail.com> on Apr 27 2020, 1:16 PM.Authored by