security: Introduce file_release hook