[openEuler-5.10 464/557] mtd: core: don't remove debugfs directory if device is in use