[PATCH 5.10 185/530] mtd: require write permissions for locking and badblock ioctls