Improving the thermostability of trehalose synthase from Thermomonospora curvata by covalent cyclization using peptide tags and investigation of the underlying molecular mechanism.