Gold shakes off dollar strength to finish flat amid geopolitical hand-wringing