Call clearstatcache before checking permission
Call clearstatcache before checking permission

This will insure that we do not hit the cache on is_writable and is_readable calls.

Closes #2447

michael-e/symphony-2,symphonycms/symphony-2,DeuxHuitHuit/symphony-2,BloodBrother/symphony-2,jensscherbl/symphony,jensscherbl/symphony,mazedigital/jcilearn,johnpuddephatt/symphony-2,BloodBrother/symphony-2,avanteweb/symphony-2,DeuxHuitHuit/symphony-2,avanteweb/symphony-2,mazedigital/jcilearn,jurajkapsz/symphony-2,michael-e/symphony-2,twiro/symphony-2,bauhouse/sym-todo-list,twiro/symphony-2,jurajkapsz/symphony-2,symphonycms/symphony-2,bauhouse/sym-todo-list,brendo/symphony-2,alexnantel88/symphony-2,johnpuddephatt/symphony-2,mazedigital/jcilearn,brendo/symphony-2,DavidForster/symphony-2,DavidForster/symphony-2,alexnantel88/symphony-2