Kyrie Irving shot a go-ahead three for the Mavs with 22 seconds left as they narrowly beat the Lakers.