### Godot version

4.1 rc 1

### System information

Windows 11

### Issue description

When an agent with navigation avoidance enabled reaches a target, it will continue going past it in the same direction. In 4.0, it would change direction and move towards the target again. 

### Steps to reproduce

Set up a simple navigation scene with no additional code to stop once the agent reaches the target. You should see the agent continue past the target once it reaches it.

To use the MRP, just run the main scene.

### Minimal reproduction project

[Navigation Avoidance MRP.zip](https://github.com/godotengine/godot/files/11908180/Navigation.Avoidance.MRP.zip)

return avoidance_mask;
}
void NavigationAgent3D::set_avoidance_layer_value(int p_layer_number, bool p_value) {
	ERR_FAIL_COND_MSG(p_layer_number < 1, "Avoidance layer number must be between 1 and 32 inclusive.");
	ERR_FAIL_COND_MSG(p_layer_number > 32, "Avoidance layer number must be between 1 and 32 inclusive.");
	uint32_t avoidance_layers_new = get_avoidance_layers();
	if (p_value) {
		avoidance_layers_new |= 1 << (p_layer_number - 1);
	} else {
		avoidance_layers_new &= ~(1 << (p_layer_number - 1));
	}
	set_avoidance_layers(avoidance_layers_new);
}
bool NavigationAgent3D::get_avoidance_layer_value(int p_layer_number) const {
	ERR_FAIL_COND_V_MSG(p_layer_number < 1, false, "Avoidance layer number must be between 1 and 32 inclusive.");
	ERR_FAIL_COND_V_MSG(p_layer_number > 32, false, "Avoidance layer number must be between 1 and 32 inclusive.");
	return get_avoidance_layers() & (1 << (p_layer_number - 1));
}
void NavigationAgent3D::set_avoidance_mask_value(int p_mask_number, bool p_value) {
	ERR_FAIL_COND_MSG(p_mask_number < 1, "Avoidance mask number must be between 1 and 32 inclusive.");
	ERR_FAIL_COND_MSG(p_mask_number > 32, "Avoidance mask number must be between 1 and 32 inclusive.");
	uint32_t mask = get_avoidance_mask();
	if (p_value) {
		mask |= 1 << (p_mask_number - 1);
	} else {
		mask &= ~(1 << (p_mask_number - 1));
	}
	set_avoidance_mask(mask);
}
bool NavigationAgent3D::get_avoidance_mask_value(int p_mask_number) const {