swap.c: Refactor getstats() and its usage
swap.c: Refactor getstats() and its usage

Add a return value so we are able to check any errors and actually fail
when there has been a critical error instead of carrying on uselessly.

drkh5h/slstatus,drkhsh/slstatus