Fix ranch_server race conditions

This replaces #32. It adds tests cases (and a fix) to a ranch server race conditions  when calling `ranch_server:set_connections_sup/2`.

Edit: This issue has changed slightly due to https://github.com/extend/ranch/commit/109c63d0e76ca6248863932c7a9957f8093cfaf2