check_port_free: Recheck before throwing an error

In some cases, check_port_free could fail because when we get to look into process table, the process has already closed the socket or exited.
Fixes hhucn/adhocracy.hhu_theme#296