Three-terminal normal-superconductor junction as thermal transistor