You will find initially it is easier to observe and master your thoughts around people you have not formed relationships with.
Be gentle with yourself, you are releasing years of old inbuilt negative patterns, celebrate each time you maintain your awareness and see every experience an opportunity for growth.
The ability to remain detached is valuable it helps you to not only see your own thoughts and responses it allows you to see others as they are, without judgement, simply observation.
What do you need to do to detach?
Simple, return to the silence and space within the mind, if there are thoughts hanging around (they will be falsified ones) just release and return to the space and silence that gave form to those thoughts. This is your natural state of being and receptivity.
Close your eyes and come to the breath