Gold climbs for the session, ends nearly flat for the week