Use weak references to store remote stubs

Change-Id: I510b54109ca05c6431b156af3b4399d134ea8ad9