fsck.gfs2: Use atexit() where on_exit() is not available
atexit() is standard and on_exit() is not, but atexit() doesn't allow us
to access the exit status, so use atexit() only where on_exit() is not
available.
Signed-off-by: Andrew Price <anprice@redhat.com>