src/locktest: Remove unused buf allocation