[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.
Same here - the same as base calss