§12-102. When a right of action is barred by the provisions of any statute, it shall be unavailable either as a cause of action or ground of defense, except as otherwise provided with reference to a counterclaim or setoff.