added query for security group race

Change-Id: I4abc818771ed3668d5df82a3b5c29ebfa54aad4a
Related-Bug: #1262566