SyncAdapter: Move some code into a SubjectAdder class so ItemsContentProvider can use it too.

ItemsContentProvider needs to get and add a subject (and its images) immediately, and
synchronously, in the unusual (maybe initial) case that the SyncAdapter has not added any yet.