Implemented texture locking in Direct3D11 backend.