Refactor: cts-schemas: Use local variables
The local keyword is bash-specific, but we require bash for this script
now. This gets rid of the ugly function-acronym prefixes that were used
to create pseudo-local variables.
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>