lock_ref_sha1(): check D/F conflict with packed ref when creating.