Allow methods in Lock only on definite objects

they segfault on the type object