target/pscsi: fix return value check