Gitlab::UpdatePathError: namespace directory cannot be moved

https://sentry.gitlap.com/gitlab/gitlabcom/issues/40276/

Gitlab::UpdatePathError: namespace directory cannot be moved
  app/models/namespace.rb:137:in `block in move_dir'
    raise Gitlab::UpdatePathError.new('namespace directory cannot be moved')
  app/models/namespace.rb:128:in `each'
    repository_storage_paths.each do |repository_storage_path|
  app/models/namespace.rb:128:in `move_dir'
    repository_storage_paths.each do |repository_storage_path|
  app/models/ee/namespace.rb:35:in `move_dir'
    succeeded = super
  lib/gitlab/database/load_balancing/connection_proxy.rb:75:in `block in write_using_load_balancer'
    connection.send(name, *args, &block)
...
(212 additional frame(s) were not displayed)

Gitlab::UpdatePathError: namespace directory cannot be moved