make sure removed objects are not published
lock the registry during the whole publication process in the periodic controller; also changed lock to read-write to allow multiple publication threads to access registry in parallel
lock the registry during the whole publication process in the periodic controller; also changed lock to read-write to allow multiple publication threads to access registry in parallel