En kvinna i Stockholm döms till fängelse efter att ha hållit sin inneboende inlåst i ett rum under en hel helg.