BUG(2555): Update g_(thread|mutex|cond)_ calls to GLib 2.32+ API.