I can also see your problem now.
The
https://beta.winscp.net/eng/docs/library_session_synchronizedirectories and
https://beta.winscp.net/eng/docs/faq_library_parameters
The
TransferOptions is 7th argument of SynchronizeDirectories. While you pass it as 5th argument.
https://beta.winscp.net/eng/docs/library_session_synchronizedirectories and
https://beta.winscp.net/eng/docs/faq_library_parameters