The UK should tell China its proposal for a Hong Kong security law is “outrageous”, says the city’s final British governor.