[PATCH 4.14 157/323] mtd: require write permissions for locking and badblock ioctls