Fix Webkit crash when methods run on other thread