The 21yr law is federal and pertains to purchases through an FFL. Since private sales in Texas are legal (among Texas residents), an 18yo can privately purchase and own a handgun, barring any other conditions that would exclude him (felony, gang, etc.).