gl_common: remove pthread based locking

Each backend that needs thread safety should provide it's own (possibly
platform dependent)locking strategy inside of `set_current`.