Fix possible race in Frame.find()