California blocks gun sales to those at risk of breaking law