[PATCH v6 3/3] geolocation: Use helpers to implement IWeakReference.