[STORE] Add dedicated method to write temporary files

Recovery writes temporary files which might not end up in the
right distributor directories today. This commit adds a dedicated
API that allows specifying the target file name in order to create the
tempoary file in the correct directory.
I don't think so it's a valid operation IMO we really only need to have this special mapping for some tests - I might be able to remove it but not here really.