prevent loading of locked dependencies which are not accessible or valid