i think i would call this mdisplaylock  since i think it is actually trying to protect mdisplaydata  i would also move this line up right above mdisplaydata and explain in the comment that it is protecting mdisplaydata from races between prepare and dump 