Compiler: Make do_code_block() reentrant. This fixes an issue where the same label could get allocated twice.