avoid issuing lots of SELECTs when deleting lab controllers

Bug: 802641
Change-Id: I35ca17a496eab7c536286318dfa864cc74e68ba3