[PATCH 5.10.y 5.4.y] ima: Fix use-after-free on a dentry's dname.name