[GPU] Align permute checking logic (#30266)
### Details:
- Permute checking logic aligned with oneDNN for consistency.
- Add test case.
### Tickets:
- CVS-163253, https://github.com/openvinotoolkit/openvino/issues/28914
---------
Signed-off-by: fishbell <bell.song@intel.com>
Co-authored-by: fishbell <bell.song@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>