gobject: Use auto-compartment on object when setting property

When binding a property inherited from the object to another
gobject property added in Javascript, it could happen that gjs
crashes when setting the property.

So enter a new compartment when doing this.

Fixes GNOME/gjs#246
26 jobs for set-gprop-compartment in 6 minutes and 22 seconds (queued for 4 seconds)
latest
Status Job ID Name Coverage
  Source Check
passed #282090
cppcheck

00:00:59

passed #282091
cpplint

00:01:18

passed #282092
eslint

00:00:44

passed #282089
fedora

00:02:37

 
  Test
passed #282096
no_graphics

00:02:38

passed #282097
no_profiler

00:03:35

passed #282098
no_readline

00:03:11

passed #282093
sanitizer_gcc

00:03:40

passed #282094
with_logging

00:03:44

passed #282095
with_systemtap

00:03:39

 
  Manual
manual #282112
allowed to fail manual
armv8
manual #282099
allowed to fail manual
codequality
manual #282100
allowed to fail manual
code_statistics
manual #282114
allowed to fail manual
coverage
manual #282102
allowed to fail manual
fedora_gcc
manual #282108
allowed to fail manual
flatpak
manual #282103
allowed to fail manual
installed_tests
manual #282106
allowed to fail manual
lts
manual #282113
allowed to fail manual
ppc64le
manual #282101
allowed to fail manual
sanitizer_clang
manual #282105
allowed to fail manual
ubuntu_clang
manual #282104
allowed to fail manual
ubuntu_gcc
manual #282107
allowed to fail manual
valgrind
manual #282111
allowed to fail manual
zeal_11
manual #282109
allowed to fail manual
zeal_2
manual #282110
allowed to fail manual
zeal_4