Fix ZF-11921: Race condition in plugin loader include file cache

This fixes the race condition described at:
http://framework.zend.com/issues/browse/ZF-11921

For the race to disappear each and every line is made completely independent from the others. This is the reason why every line includes its own php open and close tag, and no file_get_content() is made, and the file is opened in append only mode.

To prevent the insertion of duplicates lines, a fast non blocking lock is made and kept until the end of the request, thus the static $h.

Tested on a highly concurrent server without a problem.
Code cleanup
Minor fix in PluginLoader.php
Fixes #301 - Undefined variable in Zend_Application_Resource_Translate
Merge branch 'master' of github.com:nicolas-grekas/zf1 into pr164
Merge branch 'pr164'
Fixed the Zend\Auth\Adapter\OpenId tests
Merge pull request #311 from ezimuel/fix/zend-auth-openid-test

Fixed the Zend_Auth_Adapter_OpenIdTest tests
The tests for Zend_File_ClassFileLocator only work with 5.3+ due to a file with a namespace in it.
ReflectionMethod::setAccessible is only available in PHP 5.3.2 or higher, so skip test in PHP 5.2
Merge pull request #312 from akrabat/classfilelocatortest_52

Skip PHP 5.3+ tests when testing with PHP 5.2
Ignore tests/TestConfiguration.php
Merge pull request #314 from akrabat/testconfiguration

Ignore tests/TestConfiguration.php