Revert "remove useless manual lock recursion check in gl mutex"

It was actually useful to know when to release the glcontext.