(bug 46052) make storage methods obeying and using $wgTmpDirectory

$wgOpenIDConsumerStorePath and $wgOpenIDServerStorePath (if set to false)
are now using the OS system-defined temp directory.

Change-Id: Ia40b9c77afe295da7801c54fa16f24bde9455223