Mark a module for update after setting its status to prevent race
conditions.