shadertool: Fix finding a free register not marking it as taken

This got broken when I made the local unused constants be treated as
taken.