std: add a Clone impl for HashSet.

Closes #5581.