Fix illegal set operation in FreeBSD section of user module.

This fixes #4461. Cleaner patch than the previous. Thanks!