Delete site fails when content is locked
Steps to reproduce:
- Create a new site, copy from demo.
- Go to the new site, in the site browser, /application/vtl/custom-fields/
- Lock youtube-search.vtl
- Go to Sites portlet and try to delete the new site.
PR: https://github.com/dotCMS/core/pull/9623
Issue is still happening. Followed previous steps to reproduce and but this time locked "vimeo-search.vtl" and I'm still getting the error: ERROR business.HostAPIImpl: Contentlet is locked: Unable to archive https://gist.github.com/shaydotcms/3a1d6c1ffb8588d74adbc0f483121a65

When I lock different files suchs as images, txt or videos and try to delete the site, it is successfully deleted but not when I lock vtl files.
I noticed that when I create a copy from an existing site, for instance demo, the new copy already contains locked files coming along with demo and I'm able to delete the recently created site, but if I lock a new vtl file, it fails deleting the new site.
PR: https://github.com/dotCMS/core/pull/9651
Fix is working Tested locking different contents such as .vtl, .html, images, videos, etc. Everything was properly deleted along with the site. master-3.6 // Mac OS 10.10 // MySQL 5.6.23 // Firefox master-3.6 // Ubuntu 14.04.1 // Postgres 9.3.5 // Chrome