SERVER-14668 Put Lock/Global server status section in the server library only
SERVER-15389 Refactor initAndListen to create server socket ids early

Also move call to checkIfReplMissingFromCommandLine to happen after
databases have been repaired.