cryptodev: fix crash when querying device by name