gold futures close near $387 an ounce