Glamorgan captain Kiran Carlson steered his side to a long-awaited win over Surrey in the Rothesay County Championship in Cardiff.