Trey Lyles was unable to get the ref’s attention after Jaxson Hayes threatened to pee on his forehead