Clone cached tables before returning them to users in mw.wikibase

So that any changes they perform will not persist between several
invokes.

Bug: T76946
Change-Id: I6a085bec4190cbf158ef72125885b9d51e1c51a5
Merge "Clone cached tables before returning them to users in mw.wikibase"