Can you verify if the washing machine is causing the P- trap to siphon out? Could just be stinky washing machine water you are smelling. If it is not siphoning out then I would just split the sink and washing machine lines and have a trap for each....FYI I am not a plumber.
Although guess is...