mtd: add an ioctl to query the lock status of a flash sector