Gold edges lower after upbeat U.S. data, Iraq turmoil limits losses