Texkill, palette_update on correct place.

- Texkill needs to be done before texture allocation, which is now done during parsing (texture-sync update)
- palette_update needs to be called from the emu thread, before kicking off the render
Lock the entire texture data, not just the pixel array. Fixes 49.