Minor session property fix

I've found some minor issues at setting session properties.

Also, ConnectorSession which can be used in custom UDF might need to access the system session properties.