Ensuring only one rebuild process is active at any given time