Minor changes to texture locking.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>