HBASE-12212 HBaseTestingUtility#waitUntilAllRegionsAssigned should wait for RegionStates

Signed-off-by: stack <stack@apache.org>
HBASE-12189 Fix new issues found by coverity static analysis