[mlir][bufferization] Skip non-identity layouts in static memory planning (#237125)
Skip allocations with non-identity layouts to avoid invalid
`memref.view` operations, preserving affected alloc/dealloc groups.
reproducer: https://godbolt.org/z/cs5MEG18W
Assisted-by: Codex