[ots] Simplify OTS_FAILURE in debug mode

Has also the side effect of fixing the bogus maybe-uninitialized
warnings in debug mode.
[ots] Use __FUNCTION__ not __PRETTY_FUNCTION__

The former should be supported by MSVC (untested), but also the output
of __PRETTY_FUNCTION__ is too verbose.