Japan posts record-thin current-account surplus