Polling of active compaction count is racy. Tightened the asserts to be more reliable. Signed-off-by: Reid Chan <reidchan@apache.org>