[PATCH 5.4 095/244] mtd: require write permissions for locking and badblock ioctls