Singapore convict escapes caning after sex change