Update `ApplicationPid` with `toLong()` and `isAvailable()` methods to make it easier to use with structured logging. See gh-41491
Update `ApplicationPid` with `toLong()` and `isAvailable()` methods to make it easier to use with structured logging. See gh-41491