protect: add partial notification if PC is enabled

The API lacks a way of fetching current PC level/expiry data. See bug 24068.
Also other cleanup.