A mall is fine. I go through many malls in Asia. But if you're saying 3:40 is tight just to slip out and back through immigration then maybe I'll pass. I'll just peek into the immigration hall and make a game time decision.
Is departure security/immigration a risk at HND when coming back airside?