add function to lock VIs, like VIPM does