Log the state change to realised when creating a RealisationStatement.
Fix loans which had been realised and not had the state change logged.