Tripartite realism-based quantum nonlocality