Improve runtime error for non-thread-safe detection

https://bugzilla.gnome.org/show_bug.cgi?id=721664