Gold futures ends lower for a second straight session