Lupin posts surprise loss, remains operationally strong in Q3