Add query for neutron bug 1332917

Deadlock deleting from ipavailabilityranges

Change-Id: I7ca293adb9731725026ae6aef5955b12bf951222
Related-Bug: #1332917
Merge "Add query for neutron bug 1332917"