Update aws-lc to 5.1.0 and invoke cleanup on exit (#1850)