The reason that raw eggs in homemade mayo are relatively safe is due to the other ingredients they are mixed with.  The combination of oil, salt, and acid created an inhospitable environment for bacteria growth, which makes them safe to eat.