fix chdir () in buffers_extract_and_dump being disabled for non-debug builds

This was caused by an incorrect implementation of a no-op assert macro and
caused "bootchartd stop" to fail under certain circumstances.