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

also fixes #2527