Do not block the UI thread when posting to message queue

Fix regression of 006842feb20205ad6f3987c173ffff76844b9ddd

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>