Gold holds losses near $4,000 due to Middle East tensions, Fed rate uncertainty