[PATCH 4.19 189/425] mtd: require write permissions for locking and badblock ioctls