A childhood story about dogs inspired the Beach Boys’ 1966 hit, later celebrated for one of Carol Kaye’s greatest basslines.