gobject: Use auto-compartment when getting property as well
Commit f4148e7e added the corresponding call to set_gproperty() to fix crashes when setting a Javascript GObject property from C, but left get_gproperty() with the same issue.
Also make sure that we have an active request in both cases.