sha1_name.c: teach lookup context to get_sha1_with_context()