Prevent thread passing

Copying a realm between threads is not supported, and it is easy to check if it has happen. Instead of apps crashing in strange ways, it is better to tell the user what is wrong.

@emanuelez @bmunkholm @cmelchior 
This test is wrong and would never fail.
`if (realmCache.get().get(this.id)) != this) {`
looks better to me.