Bug 951218 - Use RAII to unlock TextureHost. r=bjacob