Evolutionary principles and synthetic biology: avoiding a molecular tragedy of the commons with an engineered phage