Add texture automatic locking

Camera auto locking maintains an internal surface that is accessible for later use. Such a locking should exist for textures, which would invoke lock_texture_to_surface().