Switch to non-deprecated thread and mutex APIs when using GLib >= 2.31.
Switch to non-deprecated thread and mutex APIs when using GLib >= 2.31.

R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone,R1dO/scintilla_clone