io: add a function to get the 'swmr' to be used.
It try to read the first the environment variable TOMOTOOLS_SWMR
else fallback to _DEFAULT_SWMR_MODE boolean
It try to read the first the environment variable TOMOTOOLS_SWMR
else fallback to _DEFAULT_SWMR_MODE boolean