[lock-unlock] fixes to handle many desctop managers or something