fix bug #51076 (race condition in shtool's mkdir -p)
Merge branch 'PHP-5.5'

* PHP-5.5:
  fix bug #51076 (race condition in shtool's mkdir -p)