The salvaged check only refused a bump when gateway.lock's JSON record
named a live pid. ProfileOwnership.reserve() takes the flock before it
writes the record, and a recorded pid cannot be checked across PID
namespaces (#123081), so a real owner could still be fenced out. The
flock (runtime_lock_held_elsewhere) now decides; a record naming this
pid in this PID namespace is our own reservation (gateway, served
secondary, offline-dashboard maintenance), which a flock probe from
this process would otherwise read as foreign. In-memory/URI stores
have no profile home and are skipped.
Tests hold the lock with a real ProfileOwnership in a child process and
cover a holder whose record is unpublished.
Fixes#142330