Thousands of police guard Sydney beaches after race riot warning