Apply patch from apache for issue where Phoenix preoduces lots of temp files and doesn't clean them up.

From: https://issues.apache.org/jira/browse/PHOENIX-1396