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