Bad luck is when you're effectively ruined by the age of 5 thanks once again to who your parents were. The only way out for someone that fits this description is to adopt a self-reliant, goal directed attitude.
Self-reliant, goal directed behavior is essentially what people not born lucky or ruined do to improve their position in life.
What society can do to help is communicate clearly that the virtues of persistence, resilency, self-reliance and goal directed behavior are "cool" or in sociological-speak, society's normative values.
Unfortunately, since Rousseau and Marx, we have birthed a counter-culture that is determined to do the opposite. It's determined to place the locus of control over one's life outside of the individual and onto a nepharious "society".
Marx personally was an unhappy, deeply defective, and cruel personality. His philosophy stems directly from this. It attracts people who share his defects- namely people filled with resentment, envy, a desire to extract revenge for perceived slights and a lust for absolute power.
The hope is that eventually, through CRISPR and other techniques, that as a side effect of improving human functioning the well-spring of such people will simply dry up.
Until then, we have to do battle with a philosophy which preaches the diametric opposite of what we know leads to human flourishing and happiness.