I missed acs_user::flush_user_info -user_id $user_id.
Actually I didn't change the database, but I simply added one line to auth::check_local_account_status rereading password_age_days from the users table.
Claudio