The photospheric solar oxygen project: IV. 3D-NLTE investigation of the 777 nm triplet lines