unlink: remove a file if no operations to unlink found