ssbc: Fix slow cascading deletes
Created by: eseliger
This brings down a delete query on k8s from 625353s to 201ms. Foreign keys don't automatically have a reverse index to look up with.
Closes https://github.com/sourcegraph/sourcegraph/issues/36863
Test plan
Tested this on k8s where I was seeing the issue.