Oil holds gain with Middle East tensions, US stockpiles in focus