emulate synchronous call of _call_plugin_did_create_comt

with help of nested loop
p2n_invoke: use depth of browser thread loop
p2n_has_method: call on main thread
p2n_has_property: call on main thread