I have become aware of a bug where your cursor will not re-lock when exiting the inventory. This will be fixed in a patch.