refactored topic locking pinning and deleting (and its inverses) so that the privilege check is done not in the method, but in the socket call