anv: Check that in_fence fd is valid before closing it.