Bug 951218 - Fix a bug in AutoLockTextureHost. r=bjacob