Sri Lanka rupee gains, stocks end flat