fix deadlock during join while map load happens. fixes #2530 , #3033

Can you comment on why isMigrating is needed?