lib: make memzero_explicit more robust against dead store elimination