Static flux bias of a flux qubit using persistent current trapping