Shard-friendly implementations of clear_{active/all}_connections!