libs: window: remove custom ref() and unref()

Use gst_object_ref() and gst_object_unref() instead.
6 jobs for gobject-window in 31 minutes and 23 seconds (queued for 1 second)