Define the `with-no-threads' macro and use it in the read-* functions.