[qtdeclarative] Avoid reentrancy issues with QQmlVME.

Change-Id: I6cf894a6e693c4c586032808c09ed34220dbdb7b
Merge pull request #61 from sletta/master

[qtdeclarative] Avoid reentrancy issues with QQmlVME.