For consistency, rename lock_mutex and unlock_mutex to mutex_lock and mutex_unlock.
Many functions returned an int to indicate their success. For clarity, use SDL_bool instead.
Start a new clean history from here.