Update registration lock to work with recent versions of multisite