Passive mode locking by dissipative four-wave mixing