anv: anv: refactor error handling in anv_shader_bin_write_to_blob()