[xpcom] Make sure the method survives the duration of an async call