pds_core: fix error handling in pdsc_devcmd_wait (CVE-2026-64148) | HOL Guard CVE