merge r1372093 from trunk:

release critical section before returning on error path


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1534103 13f79535-47bb-0310-9956-ffa450edef68
merge r1384764 from trunk:

spelling fix


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1534104 13f79535-47bb-0310-9956-ffa450edef68