dock: workaround reparent window failed in embed_window

Change-Id: I6cdd453f77f1fd1e3df918589a164f354bf6e2e1