Fixed a bug in the rodinia bfs.

Out files MUST be closed.

Signed-off-by: Marcin Zalewski <marcin.zalewski@gmail.com>