Much of that seems exaggerated (as you'd expect for a book portraying a young child's point of view).
Gaddafi imposed restrictions on private property but never totally abolished it. Law 4 in 1978 restricted people to one plot of land to build a house on; Law 7 in 1986 abolished private ownership of land, though people could still own their own home. After 1988, Gaddafi focused more on enabling private enterprise and reduced restrictions on property ownership. (Source: Suliman Ibrahim, Property Claims in Post-Gaddafi Libya: Political Debates and Justice Seeking in the Aftermath of Law 4/1978, Hague Journal on the Rule of Law, April 2017, Volume 9, Issue 1, pp 135–156)
Based on those laws, the idea that ordinary people (those with one home) were afraid to leave their houses seems an exaggeration; probably those with multiple houses feared their seizure, but the claim that nobody could leave their homes seems untrue. I can't find any reference to banning locks on doors.
The idea that he got people to swap professions seems an amalgamation of different things. He rotated officers in the armed forces to stop them building up a power base and to prevent coups. (History of Libya under Muammar Gaddafi, Wikipedia) He also had many journalists and politicians from the old regime removed from their jobs and jailed early in his regime, and in the 1970s launched an attack on the bourgeoisie, private businesses, and many other people. (Muammar Gaddafi, Wikipedia) Many of these people were doubtless forced into manual labour or to work on farms. (Many revolutionary leaders such as Pol Pot forced the urban middle classes into manual and/or agricultural labour - Cambodia's brutal Khmer Rouge regime, BBC 4 Aug 2014) He also encouraged many women into work, so there would be movement in the other direction as women left traditional employment. But not a "job swap" system.