WindowManager `get_data()` can encounter race condition.

Same situation as the set_timestamp of #474 just different bit of code.