copper dips as traders lock in gains; gold edges up