The races for governor and Los Angeles mayor are among the most closely watched contests yet to be decided in California's primary elections.