I wonder if anything can really work after a client has deleted every object inside root kernel directory? Is it achievable on Windows? Or may legitimately happen in Wine due to some reasons? Maybe something is wrong elsewhere and some objects should be not removable even by privileged users?
I. e., avoiding use after free in a case when everything is broken already beyond recovery maybe not wrong per se but also not all that practical.