Dynamic process migration for load balancing in distributed systems