Two books on the creative lives and ‘heady intimacies’ of Frida Kahlo and the female artists embroiled in surrealism suggest the label was restrictive