PBContext: localize protobuf-related stuff in a new context