data_smart: Fix hash corruption issue

We were accidentally using references to sets in the contains functionality
instead of creating a copy. This could cause data corruption and corruption
of the resulting sstate checksums.

This patch fixes this to make a copy of the set and resolved the corruption
issue.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>