basesrc: Make locking of the segment a bit more strict and update documentation