Fix up visibility of stock options, drop downs, and get_availability() when parent is managing stock for a variation.

Fixes #6017