Go to device manager and disable the webcam. It is under the universal serial bus controller section(last).
Right click my computer > properties > device manager(left side) > universal serial bus controllers > webcam name
Right click on it and select disable.
When you want to reuse the webcam, use the same procedure and right click and select enable.