Hong Kong stock listing boom helps city escape string of deficits