Master should be made out of stock when its variants are created.

After variants of a product is created, master is still saleable at admin end, but admin can't manage it stock information.

Also, if a user changes variant id to master id in admin end, it will get added to its cart and also he will be able to buy it.

So, master should be made out of stock when a variant is created for a product.