Gold futures settle lower, but hang on to small weekly gain