FIXUP: ifdef last_pid for NSS and document it

also fix logic around it