pctrie_lookup() does not currently modify the pctrie it is examining. Some callers depend on this when they invoke it holding a read lock. Define a readonly version of pctrie_lookup() that promises not to modify the pctrie in the future, and use it in place of pctrie_lookup() in places that hold only a read lock.
No functional change is expected.