### 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)

if (navigation_layers == p_navigation_layers) {
		return;
	}
	navigation_layers = p_navigation_layers;
	_request_repath();
}
uint32_t NavigationAgent3D::get_navigation_layers() const {
	return navigation_layers;
}
void NavigationAgent3D::set_navigation_layer_value(int p_layer_number, bool p_value) {
	ERR_FAIL_COND_MSG(p_layer_number < 1, "Navigation layer number must be between 1 and 32 inclusive.");
	ERR_FAIL_COND_MSG(p_layer_number > 32, "Navigation layer number must be between 1 and 32 inclusive.");
	uint32_t _navigation_layers = get_navigation_layers();
	if (p_value) {
		_navigation_layers |= 1 << (p_layer_number - 1);
	} else {
		_navigation_layers &= ~(1 << (p_layer_number - 1));
	}
	set_navigation_layers(_navigation_layers);
}
bool NavigationAgent3D::get_navigation_layer_value(int p_layer_number) const {
	ERR_FAIL_COND_V_MSG(p_layer_number < 1, false, "Navigation layer number must be between 1 and 32 inclusive.");
	ERR_FAIL_COND_V_MSG(p_layer_number > 32, false, "Navigation layer number must be between 1 and 32 inclusive.");
	return get_navigation_layers() & (1 << (p_layer_number - 1));
}
void NavigationAgent3D::set_pathfinding_algorithm(const NavigationPathQueryParameters3D::PathfindingAlgorithm p_pathfinding_algorithm) {