server: Check visibility when creating/removing globals

Previously the global filter was only checked when binding a
new registry.

Signed-off-by: Jason Francis <zxzax@protonmail.com>
3 jobs for dynamic-filters in 1 minute and 10 seconds (queued for 4 seconds)
latest
Status Job ID Name Coverage
  Review
passed #11039472
check-commit

00:00:12

 
  Prep
passed #11039473
debian:buster@container-prep

00:00:25

 
  Build
passed #11039474
build-native

00:00:32