Fix framebuffer locking

Because of const qualifier the virtual gDC::islocked was executed
instead of gFBDC::islocked.