Lawmaker, who has been leading contentious judicial overhaul, stayed inside a locked room as demonstrators outside shouted 'shame' and 'democracy' before being extracted by police