Fix missing SDL_LockSurface reference

Prior to this change, when blitting from the screen to a memory buffer
the code could throw a "ReferenceError: _SDL_LockSurface is not defined"
if SDL_LockSurface was not used elsewhere in the C code.