On a class of oscillatory Riemann-Hilbert problems with triangular symbols