msm_shared/smem_ptable: fix partition partition parsing logic

Existing code ignores the length field in the smem nand partition header
and fails when there are more than 16 partitions. This change uses
the length field to parse all nand partitions.

Change-Id: I2d2042cdfd5e6e0809d01607054c8fab857e5a45
2 files changed