golomb: reduce scope of a few variables

Signed-off-by: Diego Biurrun <diego@biurrun.de>