Move the lock earlier to make surface heap status aligned when surface is destroy.
1 file changed