[PATCH 5.11 209/601] mtd: require write permissions for locking and badblock ioctls