fixed race condition leading to memory leak in AnchoredActivatiableBox