Lock files - prevent full path disclosure. Fixes #3580.

@coenjacobs .14