Gold's rally is partly linked to the dollar's weakness, said analysts. The greenback has historically retreated during shutdowns.