fix a race and prevent unlinking of a file locked by another process in portage_locks...