chain.c: Fix misplaced #endif breaking non-DEBUG builds

Fix misplaced #endif which made it impossible to build without DEBUG.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
1 file changed