Clean up `noteable_id` for notes on commits Closes #54924 See merge request gitlab-org/gitlab-ce!25639