Gold has been on a run all year. Here's how to avoid a tax hit.