By: Tom Sydney Kerckhove <syd@cs-syd.eu>
Fix file locking: use withSystemTempFile with useHandleOpen for both stdout and stderr