Add realm factory helper methods to run work on the correct context
Add realm factory helper methods to run work on the correct context

Avoids constructing a new `Realm` instance when called from the update
thread without worrying about disposal.

NeoAdonis/osu,peppy/osu,ppy/osu,NeoAdonis/osu,peppy/osu,NeoAdonis/osu,ppy/osu,peppy/osu,ppy/osu