Makes lock variable size