pthsem: add patch for linux 3.x