Gordon Wood loses lawsuit against NSW