Gold prices mark first gain in four sessions