db-*: only use the osx.patch for db5 where it applies

This unbreaks builds of all other versions (4.* and 6.*).