add query for heat update resource race

Change-Id: I9e394400f0ba3da514043fb4b149fe2cd85fc110
Related-Bug: #1308682