Register this process as a running session for its lifetime.
Idempotent and fail-soft: when the lock cannot be taken, the process runs
unregistered and is_sole_session reports False. The descriptor is
non-inheritable, so the re-exec after an update drops it and the new
process registers itself again.