Keep original flags for create in SafeHardlinks.
Description
Backport of !624 (merged) to bst-1.2
This merge request, when approved, will close issue/bug: #143 (closed)
Backport of !624 (merged) to bst-1.2
This merge request, when approved, will close issue/bug: #143 (closed)