[PATCH 3.18 102/144] mtd: blkdevs: fix potential deadlock + lockdep warnings