pkcs11: Refactored private object handling to prevent removal at C_Logout