[PATCH 5.10 666/717] mtd: core: Fix refcounting for unpartitioned MTDs