Mutex functions may only fail due to a programming error. Use assertions in debug builds, and ignore the value in release builds.
SDL_assert() open a dialog on assertion failure. There is no reason not to use assert() directly.