Add query for ironic bug 1316773

Adds a query for a locked node race that surfaces in the tearDown
of the Ironic API test tempest.api.baremetal.test_nodes.

Change-Id: I85d3adddd45b6f60017b723160958cbc41c510ee
Related-bug: #1316773
Merge "Add query for ironic bug 1316773"