Fix segfault in capture state registration

Using 'this' from within the ctor of a RefBase is disallowed.

Fixes: 167242344
Test: Rerun the failed tests referenced in the bug.
Change-Id: I9737f245a2f735bdca1513beedcca93891af59b6
1 file changed