If your biggest concern is
oil going through the filter while the cooler is being bypassed, that's not a problem. Run the
oil from the block to the thermostat. Run the thermostat exit to the filter, and then back into the block. In-line thermostats always bypass the cooler at low temps - they don't stop flow altogether.