s3-libnet-samsync: return appropriate error code in fetch_sam_entry().