Mesoscopic modelling of local phase transitions and apparent-slip phenomena in microflows