Anomalous Josephson effect in S/SO/F/S heterostructures