[openEuler-5.10 249/496] mtd: maps: Fix refcount leak in ap_flash_init